package com.graduation.vaccine.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.vaccine.dto.VaccinedAddressDTO;
import com.graduation.vaccine.pojo.Company;
import com.graduation.vaccine.vo.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhaoJunYao
 * @since 2022-04-13
 */
public interface CompanyService extends IService<Company> {

    /**
     * 获取该用户所在城市的所有有余量的该疫苗的接种点信息
     * @param vaccinedAddressVo
     * @return
     */
    List<VaccinedAddressDTO> getTotalVaccinedAddress(VaccinedAddressVo vaccinedAddressVo);

    /**
     * 获取用户附件的接种点
     * @param nearByAddressVo
     * @return
     */
    RespBean getNearByVaccinedAddress(NearByAddressVo nearByAddressVo);

    //web-获取全部部门
    RespBean getAll();

    //web——部门下拉框
    RespBean companyDropDownBox();

    //部门联合查询
    RespBean unionQuery(CompanyUnionQueryVo companyUnionQueryVo);

    //修改部门信息
    RespBean updateCompany(UpdateCompanyVo updateCompanyVo);

    //条件部门
    RespBean registerDepartment(RegisterCompanyVo registerCompanyVo);

    //获取本部门信息
    RespBean getCompanyByName(String companyName);
}
